//
// Created by deepin on 2020/11/11.
//
#include <iostream>
using namespace std;
#include "namesp.h"
void other(void);
void another(void);
/*int main (void)
{
  using debts::Debt;
  using debts::showDebt;
  Debt golf = {{"Benny","Goatsniff"},120};
  showDebt(golf);
  other();
  another();
  return 0;
}*/
void other(void)
{
  using std::cout;
  using std::endl;
  using namespace debts;
  Person dg = {"Doodles","Glister"};
  showPerson(dg);
  cout << endl;
  Debt zippy[3];
  int i;
  for (i=0;i<4;++i) getDebt(zippy[i]);
  for (i=0;i<4;++i) showDebt(zippy[i]);
  cout << "Total debt: $"<< sumDebts(zippy,3) <<endl;
  return;
}
void another(void)
{
  using pers::Person;
  Person collector = {"Milo","Rightshift"};
  pers::showPerson(collector);
  std::cout << std::endl;
}